package org.ddd.orderdemo.application.event.subscribe;

import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.Subscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public interface Subscriber {

    Logger logger = LoggerFactory.getLogger(Subscriber.class);

    @Subscribe
    public default void handleDeadEvent(DeadEvent event) {
        logger.warn("Unhandled event: {}", event.getEvent());
    }

}
